﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="Quanlylienhe.aspx.cs" Inherits="admin_Quanlylienhe" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 15px;
        }
        .style3
        {
            width: 98px;
        }
        .style4
        {
            height: 15px;
            width: 98px;
        }
        .headertilte{
         	font-size:35px;
            color:#39629F;
            font-weight:bold;
            text-align:center;
            margin:0;
            width:100%;
            padding:10px 0px 10px 0px;
            border-bottom:1px solid #ededed;
         	}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <div style="border:1px solid gray;width:100%;height:auto;margin-bottom:20px;">
        <div style="width:100%;background-color:black;color:White;font-weight:bold;text-align:center;font-size:large">Quản Lý Liên Hệ</div>
        <div>
            <table style="width: 100%;">
                <tr>
                    <td align="center" style="padding-left:20px;width:100px">
                        &nbsp;</td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">
                        <asp:GridView ID="gvYKien" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" EnableModelValidation="True" 
                        Width="100%" onpageindexchanging="gvYKien_PageIndexChanging" 
                            onrowdatabound="gvYKien_RowDataBound" onrowdeleting="gvYKien_RowDeleting" 
                            onselectedindexchanged="gvYKien_SelectedIndexChanged" Font-Size="Medium" 
                            AllowPaging="True" ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="STT">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text="<%# Container.DataItemIndex + 1 %>"></asp:Label> 
                                                <asp:HiddenField ID="hdfmasp" runat="server" Value='<%# Eval("idyk") %>' />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" Width="20px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="TenKH" HeaderText="Tên Người Gửi" />
                        <asp:BoundField DataField="TieuDe" HeaderText="Tiêu đề" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="NgayGui" HeaderText="Ngày đăng" />
                        <asp:CommandField ShowSelectButton="True" SelectText="" ButtonType="Image" 
                                            SelectImageUrl="~/images/file-edit-icon.png" >
                                        <ItemStyle Width="20px" />
                        </asp:CommandField>
                        <asp:CommandField ShowDeleteButton="True" DeleteText="" ButtonType="Image" 
                            DeleteImageUrl="~/images/Close-2-icon.png" >
                        <ItemStyle Width="20px" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                </asp:GridView>
            </asp:View>
            <asp:View ID="View2" runat="server">
            <div class="headertilte">
        <asp:Label ID="lbhead" runat="server" Text="Xem Thông Tin Liên Hệ"></asp:Label></div>
                <table  cellspacing="5px" cellpadding="2px" style="margin:10 auto;font-size:medium;text-align:justify;width:500px">
                    <tr>
                        <td class="style3">
                            Tiêu đề</td>
                        <td>
                            <asp:Label ID="lbTieuDe" runat="server" Font-Size="Large"></asp:Label>
                            <asp:HiddenField ID="hIdyk" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Ngày đăng</td>
                        <td>
                            <asp:Label ID="lbNgayDang" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Người đăng</td>
                        <td>
                            <asp:Label ID="lbNguoiDang" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Email</td>
                        <td>
                            <asp:Label ID="lbEmail" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Địa chỉ</td>
                        <td class="style2">
                            <asp:Label ID="lbDiaChi" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Điện thoại</td>
                        <td>
                            <asp:Label ID="lbDienThoai" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Nội dung</td>
                        <td>
                            <asp:Label ID="lbNoiDung" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="btnBack" runat="server" onclick="btnBack_Click" 
                                Text="Trở lại" Width="55px" />
                            <asp:Button ID="btnDel" runat="server" Text="Xoá" onclick="btnDel_Click" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>
    

    </div>
    <div style="text-align:center">
                </div>
</asp:Content>

